package cn.article.error;

public class ErrorCode {

    public static final Entry SAVE_EXCELL_FAIL = new Entry("ESS0001", "导入excell表失败");
    public static final Entry QUERY_ARTICLES_FAIL = new Entry("ESS0002", "根据条件查询失败");
    public static final Entry GET_BY_ARTICLENUM = new Entry("ESS0003", "根据订单号查询失败");
    public static final Entry SAVE_PROVINCE_FAIL = new Entry("ESS0004", "保存省份失败");
    public static final Entry QUERY_PROVINCE_FAIL = new Entry("ESS0005", "查询省份失败");


    public static class Entry {

        public String code;
        public String info;

        public Entry(String code, String info) {
            this.code = code;
            this.info = info;
        }

        @Override
        public String toString() {
            return "Entry{" +
                    "code=" + code +
                    ", info=" + info +
                    '}';
        }
    }
}
